package com.wwl.springcloud.service;

import com.wwl.springcloud.dto.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/8/23 18:27
 * @description:
 */
@Service
@FeignClient(name= "seata-storage-service")
public interface StorageService {
    @PostMapping(value = "/decrease")
    CommonResult decrease(@RequestParam("productId") Integer productId, @RequestParam("count") Integer count);
}
